package com.briup.day40;

import java.io.FileOutputStream;
import java.io.OutputStreamWriter;

public class IODemo8 {
	
	public static void main(String[] args) throws Exception {
		
		String[] poems = {"床前明月光,","疑是地上霜,\r\n",
				"举头望明月,","低头思故乡。"};
		String path = "src/com/briup/day40/demo7.txt";
		FileOutputStream fos = new FileOutputStream(path);
		OutputStreamWriter osw = new OutputStreamWriter(fos);
		
		for (String string : poems) {
			osw.write(string);
		}
		
		osw.close();
		
	}

}
